package com.qfedu.constants;

public class App {

    public static void main(String[] args) {
        WeekEnum monday = WeekEnum.SUNDAY;
        System.out.println(monday);

        //获取所有枚举值
        WeekEnum[] values = WeekEnum.values();
        System.out.println(values);
        for (WeekEnum value : values) {
            System.out.println(value);
        }

        switch (monday){
            case MONDAY:
            case TUESDAY:
            case WEDNESDAY:
            case THURSDAY:
            case FRIDAY:
                System.out.println(1);
                break;
            case SATURDAY:
            case SUNDAY:
                System.out.println(0);
        }
    }
}
